import request from '@/utils/request'

const home = {
  // 按组别统计专家
  getByRecommendMajor(params) {
    return request.get('/zjk/index/getByRecommendMajor', {params})
  },
  // 按专家职称统计专家
  getByProftit(params) {
    return request.get('/zjk/index/getByProftit', {params})
  },
  // 按专业统计专家
  getByEducation(params) {
    return request.get('/zjk/index/getByEducation', {params})
  },
  // 年度新增专家数
  getExpertCountByYear(params) {
    return request.get('/zjk/index/getExpertCountByYear', {params})
  },
  // 专家参与项目评审总数
  getExpertProjectCount(params) {
    return request.get('/zjk/index/getExpertProjectCount', {params})
  },
  // 专家个数前十的单位
  getByDept(params) {
    return request.get('/zjk/index/getByDept', {params})
  },
  getByDegree(params) {
    return request.get('/zjk/index/getByDegree', {params})
  },
  getAgeDistribution(params){
    return request.get('/zjk/index/getAgeDistribution', {params})
  },
  getVitalityByTime(time){
    return request.get(`/zjk/index/getVitalityByTime/${time}`)
  },
  getExpertCountByTime(time){
    return request.get(`/zjk/index/getExpertCountByTime/${time}`)
  },
  getAllExpertCount(params){
    return request.get('/zjk/index/getAllExpertCount', {params})
  }
}

export default home;
